package com.farm.kaiping.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.farm.kaiping.entity.SysRegion;
import com.farm.kaiping.vo.SysRegionVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;

/**
 * 行政区划(SysRegion)表数据库访问层
 *
 * @author zhuhui
 * @since 2024-11-26 22:58:21
 */
@Mapper
public interface SysRegionMapper extends BaseMapper<SysRegion> {

    @Select("SELECT ${ew.sqlSelect} FROM sys_region ${ew.customSqlSegment}")
    List<SysRegion> selectExportList(@Param(Constants.WRAPPER) Wrapper wrapper);

    @Select("SELECT ${ew.sqlSelect} FROM sys_region ${ew.customSqlSegment}")
    List<SysRegionVO> selectSimpleList(@Param(Constants.WRAPPER) Wrapper wrapper);

}

